# @Author   : 懒羊羊
# @File     : search.py
# @Time     : 2024/12/4 19:57
import time

from selenium.webdriver.chrome import webdriver
from selenium.webdriver.common.by import By


def search(wd):
    a = wd.find_element(By.CSS_SELECTOR, "input[name='keywords']")
    a.clear()
    a.send_keys("小米")

    wd.find_element(By.CSS_SELECTOR, "input[name='imageField']").click()

    time.sleep(2)




if __name__ == '__main__':
    wd = webdriver.WebDriver()
    wd.get("http://192.168.88.102/index.php")
    search(wd)
    wd.quit()
